package com.atguigu.tingshu.payment.service;

import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

public interface WxPayService {

    /**
     * 调用微信支付获取 调起支付所需的所有参数，用于小程序端调起支付
     *
     * @param paymentType
     * @param orderNo
     * @return
     */
    Map<String, String> getWxPayParams(String paymentType, String orderNo);

    /**
     * 查询交易支付状态
     * @param orderNo
     * @return
     */
    Boolean queryPayStatus(String orderNo);

    /**
     * 处理微信异步回调
     *
     * @param request
     * @return
     */
    Map<String, String> notifySuccess(HttpServletRequest request);
}
